import { createRouter, createWebHistory } from 'vue-router'

let routes = [
  {
    name: "home",
    path: "/home",
    component: () => import("../views/home/index.vue")
  },
  {
    name: "cart",
    path: "/cart",
    alias: "/cartone",//路由别名
    component: () => import("../views/cart/index.vue")
  },
  {
    path: "/play",
    name: "play",
    component: () => import("../views/play/index.vue")
  },
  {
    path: "/mine",
    name: "mine",
    component: () => import("../views/mine/index.vue")
  },
  {
    path: "/cate",
    name: "cate",
    component: () => import("../views/cate/index.vue")
  }
]
let router = createRouter({
  history: createWebHistory(),
  routes
})
export default router